<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      user-select: none;
    }

    html {
      height: 100vh;
      overflow: hidden;
    }

    body {
      width: 100%;
      height: 100vh;
      margin: 0;
      background: #222;
      perspective: 1px;
      transform-style: preserve-3d;
      overflow-x: hidden;
      overflow-y: scroll;
    }

    .section1,
    .section2 {
      width: 100%;
      min-height: 100vh;
      position: relative;
      transform-style: preserve-3d;
    }


    /* 底色没卵用，会被覆盖 */
    .section1 {
      /* background-color: rgb(75, 56, 75); */
    }

    .section1::before {
      content: '';
      width: 100%;
      height: 100%;
      position: absolute;
      /* background-image: linear-gradient(to bottom, #ff0000, #00ff00); */
      background: url('background.png');
      background-size: cover;
      transform: translate3d(0, 0, -1px) scale(2.2);
      transform-origin: center;
    }

    .background {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-image: linear-gradient(to bottom, rgb(252, 226, 103), #00ff00);
    }

    .text1,
    .text2 {
      position: absolute;
      top: 50%;
      left: 50%;
      white-space: nowrap;
      color: #fff;
      text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3),
        5px 5px 70px rgba(255, 255, 255, 0.3);
    }

    .text1 {
      font-size: 8vw;
      transform: translate(-50%, -50%);
    }

    .text2 {
      font-size: 4vw;
      transform: translate3d(-50%, -50%, 0.3px) scale(1);
      transform-origin: center;
    }

    .rect {
      position: absolute;
      left: 10%;
      top: 20%;
      width: 200px;
      height: 200px;
      background-color: rgb(67, 163, 11);
      filter: blur(2px);
      animation: swing 5s infinite 1s;
    }

    .circle {
      position: absolute;
      left: 60%;
      top: 70%;
      width: 300px;
      height: 300px;
      background-color: burlywood;
      opacity: 0.8;
      border-radius: 50%;
    }

    @keyframes swing {
      0% {
        transform: rotateZ(0deg) scale(0);
      }

      50% {
        transform: rotateZ(360deg) scale(1);
      }

      100% {
        transform: rotateZ(0deg) scale(0);
      }
    }
  </style>
</head>

<body>
  <div class="section1">
    <div class="text1">Penk是个码农</div>
  </div>
  <div class="section2">
    <div class="background"></div>
    <div class="rect"></div>
    <div class="text2">CSDN，B站，微信公众号同号~</div>
    <div class="circle"></div>
  </div>
</body>

</html>